From f240f9c3c635222069b4e2e037c5eb7aa3687075 Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Fri, 19 Nov 2021 09:37:10 +0100 Subject: [PATCH] x86/HVM: correct cleanup after failed viridian_vcpu_init() This happens after nestedhvm_vcpu_initialise(), so its effects also need to be undone. Fixes: 40a4a9d72d16 ("viridian: add init hooks") Signed-off-by: Jan Beulich Reviewed-by: Andrew Cooper master commit: 66675056c6e59b8a8b651a29ef53c63e9e04f58d master date: 2021-10-18 14:21:17 +0200 --- xen/arch/x86/hvm/hvm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/x86/hvm/hvm.c b/xen/arch/x86/hvm/hvm.c index ab45b0a588..5b7e494ca3 100644 --- a/xen/arch/x86/hvm/hvm.c +++ b/xen/arch/x86/hvm/hvm.c @@ -1580,7 +1580,7 @@ int hvm_vcpu_initialise(struct vcpu *v) rc = viridian_vcpu_init(v); if ( rc ) - goto fail5; + goto fail6; rc = hvm_all_ioreq_servers_add_vcpu(d, v); if ( rc != 0 ) -- 2.30.2